package com.ruoyi.common.core.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @TableName region
 */
@TableName(value ="region")
@Data
public class Region implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer superclassId;

    private String name;

    private String num;

    @TableField(exist = false)
    private List<Region>  children;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}